$parseRSSwithimg({
    count: 1,
    url: "http://berita.maiwanews.com/feed",
    callback: function(posts) {
      var code = String('<a href="http://www.maiwanews.com/"><h3>BERITA INDONESIA</h3></a>');
        for(var i = 0; i < posts.length; i++) {
            var img = posts[i].content.split('src="')[1].split('"')[0];
            var content = posts[i].contentSnippet;
            var link = posts[i].link;
            var title = posts[i].title;
            var date = posts[i].publishedDate;
            code += '<article>';code += '<a href="' + link + '"><img src="' + img + '">'            
            code += '<strong>' + title + '</strong></a><br /><em> (' + Date.create(date).relative() + ')</em>';
            code += '<br />' + content + '...';
            code += '</article>';
        }
        document.getElementsByTagName("output")[0].innerHTML = code;
    }
});
